package com.ssm.helong.shop.entity;

/**
 * 购物车实体类
 */
public class ShoppingCar {
    //购物车编号
    private Integer id;
    //商品编号
    private Integer goodsId;
    //商品数量
    private Integer goodsNum;
    //加入购物车时间
    private String goodsCreateDate;
    //用户编号
    private Integer userId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }

    public String getGoodsCreateDate() {
        return goodsCreateDate;
    }

    public void setGoodsCreateDate(String goodsCreateDate) {
        this.goodsCreateDate = goodsCreateDate;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "ShoppingCar{" +
                "id=" + id +
                ", goodsId=" + goodsId +
                ", goodsNum=" + goodsNum +
                ", goodsCreateDate=" + goodsCreateDate +
                ", userId=" + userId +
                '}';
    }


}
